/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/03/15
 */
package vn.smartware.co.java.net.commons;

/**
 * name property class<br>
 * 
 * @author Giangnh <br>
 */
public class NameProperty extends Property {

	/**
	 * field src prop<br>
	 */
	private String srcProp;
	/**
	 * @param destPropName
	 * @param srcPropName
	 * @param notCopyIfNull
	 */
	public NameProperty(String destPropName, String srcPropName,
			boolean notCopyIfNull) {
		super(destPropName,notCopyIfNull);
		this.srcProp = srcPropName;
	}

	/**
	 * get src prop<br>
	 * 
	 * @return String
	 */
	public String getSrcProp() {
		return this.srcProp;
	}

	/**
	 * set src prop<br>
	 * 
	 * @param srcProp
	 */
	public void setSrcProp(String srcProp) {
		this.srcProp = srcProp;
	}

	/**
	 * is value property<br>
	 * 
	 * @return boolean
	 */
	public boolean isValueProperty() {
		return false;
	}

	/**
	 * is name property<br>
	 * 
	 * @return boolean
	 */
	public boolean isNameProperty() {
		return true;
	}

}
